<?php $this->extend('comm/page');?>


<form class="layui-form form-horizontal" action="<?php echo $container->url->build(''); ?>" method="post">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">资源标题:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="title" lay-verify="required" lay-verType="tips" lay-reqText="请输入资源标题"
                placeholder="请输入资源标题" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">URL:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="url" lay-verify="required" lay-verType="tips" lay-reqText="请输入URL"
                placeholder="请输入URL" class="layui-input" id="url">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" class="btn btn-info" id="upload">
                <i class="fa fa-cloud-upload"></i> 上传图片
            </button>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">存储类型:</label>
        <div class="col-xs-12 col-sm-8">
            <?php echo $this->build_radios('storage', ['1'=>'本地', '2'=>'CDN'], 1, [], true); ?>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">开放状态:</label>
        <div class="col-xs-12 col-sm-8">
            <?php echo $this->build_radios('status', ['1'=>'开放', '2'=>'不开放'], 1, [], true); ?>
        </div>
    </div>
    <div class="layui-form-item hidden layer-footer">
        <div class="col-xs-12 text-right">
            <button type="submit" class="btn btn-success" lay-submit lay-filter="submit">确认提交</button>
            <button type="reset" class="btn btn-default">重置</button>
        </div>
    </div>
</form>